home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / CAD / LAUNCH36.ARJ / SETUP.BAT < prev    next >
DOS Batch File  |  1991-07-05  |  2KB  |  57 lines

  1. echo off
  2.   cls
  3.   echo . 
  4.   echo LaunchCAD / Custom#Menu setup program
  5.   echo . 
  6.   echo This program will extract files from both the LaunchCAD and Custom#Menu
  7.   echo ZIP archives to your AutoCAD directory and modify your ACAD.PGP and
  8.   echo ACAD.LSP files. Backups are make of these files as ACAD.PG2 and ACAD.LS2
  9.   echo .
  10.   echo Press any key to continue or CTRL-C to quit now.
  11.   echo .
  12.   pause > nul
  13.   if [%1] == [] goto :usage
  14.   if [%2] == [] goto :usage
  15.   if not exist %1unzip.exe goto baddrive
  16.   if not exist %2\acad.exe goto badacad
  17. :ok
  18.   echo .
  19.   echo Extracting Custom#Menu files...
  20.   echo .
  21.   %1unzip %1cmenu*.zip %2 /o
  22.   rename %2\!read.me! readme.cmu
  23.   rename %2\manifest manifest.cmu
  24.   rename %2\register.doc register.cmu
  25.   echo Extracting LaunchCAD files...
  26.   %1unzip %1lcad*.zip %2 /o
  27.   if not exist %2\acad.pgp goto nopgp
  28.   copy %2\acad.pgp %2\acad.pg2
  29.   copy %2\acad.pgp + %2\lc.pgp %2\acad.pgp
  30.   goto lisp
  31. :nopgp
  32.   echo Unable to locate the file ACAD.PGP, you must add the contents of
  33.   echo LC.PGP to ACAD.PGP manually
  34. :lisp
  35.   if not exist %2\acad.lsp goto nolisp
  36.   copy %2\acad.lsp %2\acad.ls2
  37.   copy %2\acad.lsp + %2\lc.lsp %2\acad.lsp
  38.   goto done
  39. :nolisp
  40.   echo Unable to locate the file ACAD.LSP, you must add the contents of
  41.   echo LC.LSP to ACAD.LSP manually
  42. :done
  43.   echo Done
  44.   goto end
  45. :badacad
  46.   echo Error: %2 is not your AutoCAD directory.
  47.   goto usage
  48. :baddrive
  49.   echo Error: the file UNZIP.EXE can not be found on drive %1
  50. :usage
  51.   echo .
  52.   echo In order for Setup to work properly you must provide both the
  53.   echo floppy drive and your AutoCAD directory:
  54.   echo .
  55.   echo Usage: SETUP A: C:\ACAD
  56. :end
  57.